﻿using FriendStar.Code;
using FriendStar.Domain.Entity.VBaseData;
using FriendStar.Domain.IRepository.VBaseData;
using FriendStar.Repository.VBaseData;
using System.Collections.Generic;
using System.Linq;
using SqlSugarRepository;

namespace FriendStar.Application.VBaseData
{
    public class V_ZSJ_12_GH_SuProduction_DatStorApp
    {
        private IV_ZSJ_12_GH_SuProduction_DatStorRepository service = new V_ZSJ_12_GH_SuProduction_DatStorRepository();
        public List<V_ZSJ_12_GH_SuProduction_DatStorEntity> GetList(string currentDate, string companyNameOrNo, string useUnit, string docuTypeNO, string productionNO,string productionName)
        {
            var expression = ExtLinq.True<V_ZSJ_12_GH_SuProduction_DatStorEntity>();
            return service.GetV_ZSJ_12_GH_SuProduction_DatStorList(currentDate, companyNameOrNo, useUnit, docuTypeNO, productionNO, productionName);
        }

        public List<V_ZSJ_12_GH_SuProduction_DatStorEntity> GetListForPick(string currentDate,string companyNameNo, string productionNO,string productionName)
        {
            string useUnit = Configs.GetValue("UseUnit");
            string docuTypeNO = "CC";
            var expression = ExtLinq.True<V_ZSJ_12_GH_SuProduction_DatStorEntity>();
            return service.GetListForPick(currentDate, companyNameNo, useUnit, docuTypeNO, productionNO, productionName);
        }
    }
}
